package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.PickCountryDao;
import io.renren.entity.PickCountryEntity;
import io.renren.service.PickCountryService;



@Service("pickCountryService")
public class PickCountryServiceImpl implements PickCountryService {
	@Autowired
	private PickCountryDao pickCountryDao;
	
	@Override
	public PickCountryEntity queryObject(Integer id){
		return pickCountryDao.queryObject(id);
	}
	
	@Override
	public List<PickCountryEntity> queryList(Map<String, Object> map){
		return pickCountryDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return pickCountryDao.queryTotal(map);
	}
	
	@Override
	public void save(PickCountryEntity pickCountry){
		pickCountryDao.save(pickCountry);
	}
	
	@Override
	public void update(PickCountryEntity pickCountry){
		pickCountryDao.update(pickCountry);
	}
	
	@Override
	public void delete(Integer id){
		pickCountryDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		pickCountryDao.deleteBatch(ids);
	}
	
}
